package org.centsuse.intention_spring.invention.service;

import dev.langchain4j.model.chat.ChatLanguageModel;
import org.centsuse.intention_spring.invention.entities.http.ChatRequest;
import org.centsuse.intention_spring.invention.entities.http.ChatResponse;
import org.centsuse.intention_spring.invention.factory.ModelFactory;

/**
 * 对话服务类，所有业务功能都在这个里面
 */
public interface Chat2AIService {

    /**
     * @desc 判断当前用户输入是否与上一轮对话关联
     * @param chatRequest 用户输入
     * @return boolean
     */
    boolean isRelatedToLastIntent(ChatRequest chatRequest);

    /**
     * @description  重新生成场景意图
     * @param chatRequest 用户输入
     * @return String //TODO 后期改为枚举
     */
    String recognizeIntent(ChatRequest chatRequest);

    /**
     * @description 问题处理
     * @param chatRequest 用户输入
     * @return ChatResponse 结果处理
     */
    ChatResponse processMultiQuestion(ChatRequest chatRequest);
}
